import { AddFormatFunc, classRuleType } from "../types";

AddFormatFunc<classRuleType>({

	type: "CLASS",

	handle: (rule, FMC) => {
		return `${FMC(rule[1])}class${rule[2].length === 0 ? "" : ` ${FMC(rule[2])}`}${FMC(rule[3])} \{\n${rule[4].map(item => FMC(item) + "\n").join("")}\}`;
	},

})
